package com.service.impl;

import com.domain.Doctor;
import com.mapper.HospitalMapper;
import com.service.HospitalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * 2024/5/27 Cjj 医院管理系统ServiceImpl层实现
 */
@Service
public class HospitalServiceImpl implements HospitalService {

    @Autowired
    private HospitalMapper hospitalMapper;

    @Override
    public List<Doctor> insertDoctor(Doctor doctor) {
        return hospitalMapper.insertDoctor(doctor);
    }

    @Override
    public List<Doctor> listDoctor(Doctor doctor) {
        return hospitalMapper.selectList(doctor);
    }
}
